Optimizing the medication